

import request from '@/utils/request'

export function getList(params) {
  //此处直接使用参数
  return request({
    url: '/getVideoList',
    method: 'GET',
    params
  })
}

export function picAdd(data) {
  return request({
    url: '/saveVideo',
    method: 'POST',
    data: data
  })
}

export function picDel(pram) {
  const data = {
    id: pram.id,
  }
  return request({
    url: '/deleteVideoById',
    method: 'GET',
    params: data
  })
}

/**
 * 修改
 * @param
 */
export function updateStatusApi(pram) {
  const data = {
    status: pram.status,
    id: pram.id
  }
  return request({
    url: '/updateVideoStatus',
    method: 'post',
    data: data
  })
}
